package com.fishery.memo.client;

import com.fishery.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author run
 * @since 2021/1/31 11:10
 */
@FeignClient(name = "fishery-authority-service")
@Component
public interface UserClient {

    @GetMapping("/authority/user/{id}")
    public Result searchUserById(@PathVariable(value = "id") String userId);
}
